function remove(id) {
	if (confirm("你确定要删除该商品吗？")) {
        $("#mainForm").attr("action",$("#basePath").val() + "/businesses/remove/" + id);
        $("#mainForm").submit();
	}

}

function search(currentPage) {
	$("#mainForm").attr("method","GET");
	$("#mainForm").attr("action",$("#basePath").val() + "/businesses");
	$("#mainForm").submit();
}

function modifyInit(id) {
	location.href = $("#basePath").val() + "/businesses/" + id;
}